home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 May / maximum-cd-2009-05.iso / DiscContents / Firefox Setup 3.0.6.exe / nonlocalized / chrome / browser.jar / content / browser / setDesktopBackground.xul < prev    next >
Encoding:
Extensible Markup Language  |  2007-09-02  |  2.1 KB  |  55 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- --> 
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  5. <?xml-stylesheet href="chrome://browser/skin/setDesktopBackground.css" type="text/css"?>
  6.  
  7. <!DOCTYPE dialog SYSTEM "chrome://browser/locale/setDesktopBackground.dtd">
  8.  
  9.  
  10. <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.         xmlns:html="http://www.w3.org/1999/xhtml"
  12.         windowtype="Shell:SetDesktopBackground"
  13.         buttons="accept,cancel"
  14.         buttonlabelaccept="&setDesktopBackground.title;"
  15.         onload="gSetBackground.load();"
  16.         ondialogaccept="gSetBackground.setDesktopBackground();"
  17.         title="&setDesktopBackground.title;"
  18.         style="width: 30em;">
  19.  
  20.     <stringbundle id="backgroundBundle"
  21.                   src="chrome://browser/locale/shellservice.properties"/>
  22.     <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
  23.     <script type="application/javascript" src="chrome://browser/content/setDesktopBackground.js"/>
  24.     <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
  25.  
  26.     <hbox align="center">
  27.       <label value="&position.label;"/>
  28.       <menulist id="menuPosition"
  29.                 label="&position.label;" 
  30.                 oncommand="gSetBackground.updatePosition();">
  31.         <menupopup>
  32.           <menuitem label="¢er.label;"  value="CENTER"/>
  33.           <menuitem label="&tile.label;"    value="TILE"/>
  34.           <menuitem label="&stretch.label;" value="STRETCH"/>
  35.         </menupopup>
  36.       </menulist>
  37.       <spacer flex="1"/>
  38.       <label value="&color.label;"/>
  39.       <colorpicker id="desktopColor"
  40.                    type="button" 
  41.                    onchange="gSetBackground.updateColor(this.color);"/> 
  42.     </hbox>
  43.     <groupbox align="center">
  44.       <caption label="&preview.label;"/>
  45.       <stack>
  46.         <!-- if width and height are not present, they default to 300x150 and stretch the stack -->
  47.         <html:canvas id="screen" width="1" height="1"/>
  48.         <image id="monitor"/>
  49.       </stack>
  50.     </groupbox>
  51.     
  52.  
  53.  
  54. </dialog>
  55.